package com.acme.task2;

public class Foo
{
	int iterationNumber;
	
	@Override
	protected void finalize() throws Throwable
	{
		System.out.println("GC was called on iteration #" + 
				iterationNumber);
		super.finalize();
	}
	
	public Foo(int n)
	{
		iterationNumber = n;
	}
}